/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EmRmPanel.java
 *
 * Created on 27/11/2011, 18:54:25
 */
package proj5labbd.graphics.emissora;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import proj5labbd.DBInterface;
import proj5labbd.graphics.abstractOpGraphics.OperationPanel;

/**
 *
 * @author yole
 */
public class EmRmPanel extends OperationPanel {

    /** Creates new form EmRmPanel */
    public EmRmPanel(EmissoraFrame frame, DBInterface dbInterface) {
        super(frame,dbInterface);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jpnParam3 = new javax.swing.JPanel();
        jlbCNPJEm3 = new javax.swing.JLabel();
        jftxtCNPJ3 = new javax.swing.JFormattedTextField();
        jlbNomeC3 = new javax.swing.JLabel();
        jlbDate3 = new javax.swing.JLabel();
        jtxtDate3 = new javax.swing.JTextField();
        jlbNomeF3 = new javax.swing.JLabel();
        jtxtNomeC3 = new javax.swing.JTextField();
        jtxtNomeF3 = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jlstRemove = new javax.swing.JList();
        jbtRemove = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createTitledBorder("Remove"));

        jpnParam3.setBorder(javax.swing.BorderFactory.createTitledBorder("Parâmetros de remoção"));

        jlbCNPJEm3.setText("CNPJ");

        try {
            jftxtCNPJ3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##.###.###/####-##")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jftxtCNPJ3.setFocusLostBehavior(javax.swing.JFormattedTextField.COMMIT);

        jlbNomeC3.setText("Nome Completo");

        jlbDate3.setText("Data de Fundação");

        jlbNomeF3.setText("Nome Fantasia");

        javax.swing.GroupLayout jpnParam3Layout = new javax.swing.GroupLayout(jpnParam3);
        jpnParam3.setLayout(jpnParam3Layout);
        jpnParam3Layout.setHorizontalGroup(
            jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnParam3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jlbNomeC3)
                    .addComponent(jlbCNPJEm3, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jftxtCNPJ3, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
                    .addComponent(jtxtNomeC3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlbDate3)
                    .addComponent(jtxtDate3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
                    .addComponent(jtxtNomeF3, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
                    .addComponent(jlbNomeF3))
                .addContainerGap())
        );
        jpnParam3Layout.setVerticalGroup(
            jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnParam3Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlbCNPJEm3)
                    .addComponent(jlbDate3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jftxtCNPJ3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtxtDate3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlbNomeC3)
                    .addComponent(jlbNomeF3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpnParam3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtxtNomeF3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtxtNomeC3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jScrollPane1.setViewportView(jlstRemove);

        jbtRemove.setText("Remove");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jbtRemove, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jpnParam3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jpnParam3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbtRemove))
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JButton jbtRemove;
    javax.swing.JFormattedTextField jftxtCNPJ3;
    private javax.swing.JLabel jlbCNPJEm3;
    private javax.swing.JLabel jlbDate3;
    private javax.swing.JLabel jlbNomeC3;
    private javax.swing.JLabel jlbNomeF3;
    private javax.swing.JList jlstRemove;
    private javax.swing.JPanel jpnParam3;
    javax.swing.JTextField jtxtDate3;
    private javax.swing.JTextField jtxtNomeC3;
    private javax.swing.JTextField jtxtNomeF3;
    // End of variables declaration//GEN-END:variables

}
